package com.nmsl.system.presc_temp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nmsl.common.annotation.Excel;
import com.nmsl.common.core.domain.BaseEntity;

/**
 * 处方模板对象 prescription_template
 * 
 * @author gmh
 * @date 2025-02-18
 */

public class PrescriptionTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 模板编号 */
    @Excel(name = "模板编号")
    private Long templateId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 处方类型 */
    @Excel(name = "处方类型")
    private String prescriptionType;

    /** 诊断 */
    @Excel(name = "诊断")
    private String diagnosis;

    /** 模板权限 */
    @Excel(name = "模板权限")
    private String templatePermission;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 员工名称 */
    @Excel(name = "员工名称")
    private Long adminId;

    /** 处方信息 */
    @Excel(name = "处方信息")
    private Long prescriptionInfoId;

    /** 检查信息 */
    @Excel(name = "检查信息")
    private Long examinationInfoId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setPrescriptionType(String prescriptionType) 
    {
        this.prescriptionType = prescriptionType;
    }

    public String getPrescriptionType() 
    {
        return prescriptionType;
    }
    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }
    public void setTemplatePermission(String templatePermission) 
    {
        this.templatePermission = templatePermission;
    }

    public String getTemplatePermission() 
    {
        return templatePermission;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }
    public void setPrescriptionInfoId(Long prescriptionInfoId) 
    {
        this.prescriptionInfoId = prescriptionInfoId;
    }

    public Long getPrescriptionInfoId() 
    {
        return prescriptionInfoId;
    }
    public void setExaminationInfoId(Long examinationInfoId) 
    {
        this.examinationInfoId = examinationInfoId;
    }

    public Long getExaminationInfoId() 
    {
        return examinationInfoId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateId", getTemplateId())
            .append("templateName", getTemplateName())
            .append("prescriptionType", getPrescriptionType())
            .append("diagnosis", getDiagnosis())
            .append("templatePermission", getTemplatePermission())
            .append("creationTime", getCreationTime())
            .append("adminId", getAdminId())
            .append("prescriptionInfoId", getPrescriptionInfoId())
            .append("examinationInfoId", getExaminationInfoId())
            .toString();
    }
}
